<div class="row">
    <div id="five columns centered" class="panel">
        <center>
        
        <table>
            <tr>
                <td rowspan="3">
                    <div id="compartir"></div>
                </td>
                <td>
                    <?php echo form_open('login/validate'); ?>
                    <table width="300px">
                        <thead>
                          <tr>
                            <th colspan="2" style="text-align:center;">Log In</th>
                          </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td>E-mail: </td>
                                <td>
                                    <?php echo form_input('mail',set_value('mail')); ?>
                                    <?php echo form_error('mail'); ?>
                                </td>
                            </tr>
                            <tr>
                                <td>Password: </td>
                                <td>
                                    <?php echo form_password('pass1', set_value('pass1')); ?>
                                    <?php echo form_error('pass1'); ?>
                                </td>
                            </tr>
                            <tr>
                                <td></td>
                                <td style="text-align: right">
                                    <?php echo anchor("/", 'Facebook', 'class="nice small radius blue button"'); ?>
                                    
                                    <?php echo form_submit(array('name'=>'enter', 'class'=>'nice small radius green button', 'value'=>'Log In')); ?>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                     <?php echo form_close(); ?> 
                </td>
            </tr>
            <tr>
                <td>
                    <!--<?php echo validation_errors(); ?>-->
                </td>
            </tr>
            <tr>
                <td>
                    <center>
                        
                    <?php echo form_open('users/newuser'); ?>
                    
                    <table width="300px">
                        <thead>
                          <tr>
                            <th colspan="2" style="text-align:center;">Register</th>
                          </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td>Name: </td>
                                <td>
                                    <?php echo form_input('username',set_value('username')); ?>
                                    <?php echo form_error('username'); ?>
                                </td>
                            </tr>
                            <tr>
                                <td>Password: </td>
                                <td>
                                    <?php echo form_password('pass', set_value('pass')); ?>
                                    <?php echo form_error('pass'); ?>
                                </td>
                            </tr>
                            <tr>
                                <td>Confirm password: </td>
                                <td>
                                    <?php echo form_password('pass2', set_value('pass2')); ?>
                                    <?php echo form_error('pass2'); ?>
                                </td>
                            </tr>
                            <tr>
                                <td>E-mail: </td>
                                <td>
                                    <?php echo form_input('email', set_value('email')); ?>
                                    <?php echo form_error('email'); ?>
                                </td>
                            </tr>
                            <tr>
                                <td></td>
                                <td style="text-align: right">                                    
                                    <?php echo form_submit(array('name'=>'save', 'class'=>'nice small radius green button', 'value'=>'Register')); ?>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    
                    <?php echo form_close(); ?>
                    </center>
                </td>
            </tr>
        </table>
        </center>
    </div>    
</div>
